#pragma once 

#include "resource_handle.hpp"

namespace winboost {
   namespace resources {

struct deleter_menu
{
   void operator()(HMENU h)  { ::DestroyMenu(h); }
};

class menu : public resource_handle<HMENU__>
{
   virtual void set_id_impl(LPCTSTR ids, HINSTANCE hinst)
   {
      m_handle = handle_type(::LoadMenu(hinst, ids), deleter_menu());
   }
};

   }
}
